import body from '@/components/body'
import childView from '@/components/appMain.vue'

const templateTree = resolve => {
  require(['@/views/interface/template/tree.vue'], resolve)
}; //
const templateList = resolve => {
  require(['@/views/interface/template/list.vue'], resolve)
}; //
const templateEdit = resolve => {
  require(['@/views/interface/template/edit.vue'], resolve)
}; //
const templateReName = resolve => {
  require(['@/views/interface/template/rename.vue'], resolve)
}; //
const templateSetting = resolve => {
  require(['@/views/interface/template/setting.vue'], resolve)
}; //
const resourceTree = resolve => {
  require(['@/views/interface/resource/tree.vue'], resolve)
}; //
const resourceList = resolve => {
  require(['@/views/interface/resource/list.vue'], resolve)
}; //
const resourceEdit = resolve => {
  require(['@/views/interface/resource/edit.vue'], resolve)
}; //
const resourceReName = resolve => {
  require(['@/views/interface/resource/rename.vue'], resolve)
}; //
const helpRouter = {
  path: '/help',
  component: body,
  iconCls: 'icon-caozuo-fuzhugongneng',
  name: '辅助', //
  meta: {
    isLink: true
  },
  children: [
    {
      path: '/fullTextSearch',
      isParent: true,
      name: '全文检索', //全文检索
      component: resolve => {
        require(['@/views/operate/fullTextSearch/input.vue'], resolve)
      },
    },
    // {
    //   path: '/dictionary',
    //   name: '字典',//字典
    //   component: childView,
    //   isParent: true,
    //   redirect: '/dictionary/list',
    //   children: [
    //     {
    //       path: '/dictionary/list',////字典列表
    //       name: '字典列表',
    //       component: resolve => {
    //         require(['@/views/operate/dictionary/list.vue'], resolve)
    //       },
    //     },
    //   ]
    // },
    {
      path: '/contentCycle',
      name: '内容回收站',//内容回收站
      component: childView,
      isParent: true,
      redirect: '/contentCycle/list',
      children: [
        {
          path: '/contentCycle/list',////字典列表
          name: '内容回收站列表',
          component: resolve => {
            require(['@/views/operate/contentCycle/list.vue'], resolve)
          },
        },
      ]
    },
    // {
    //   path: '/crontab',
    //   name: '定时任务', //定时任务
    //   component: childView,
    //   isParent: true,
    //   redirect: '/crontab/list',
    //   children: [{
    //     path: '/crontab/list', //定时任务列表
    //     name: '定时任务列表',
    //     component: resolve => {
    //       require(['@/views/operate/crontab/list.vue'], resolve)
    //     },
    //   }, {
    //     path: '/crontab/save', //定时任务添加
    //     name: '定时任务添加',
    //     component: resolve => {
    //       require(['@/views/operate/crontab/edit.vue'], resolve)
    //     },
    //   }, {
    //     path: '/crontab/update', //定时任务修改
    //     name: '定时任务修改',
    //     component: resolve => {
    //       require(['@/views/operate/crontab/edit.vue'], resolve)
    //     },
    //   }]
    // },
    {
      path: '/file',
      name: '附件管理',//附件管理
      component: childView,
      isParent: true,
      redirect: '/file/list',
      children: [
        {
          path: '/file/list',//附件管理
          name: '附件管理',
          component: resolve => {
            require(['@/views/operate/file/list.vue'], resolve)
          },
        },
      ]
    },
    // {
    //     //   path: '/dimensioncode',
    //     //   name: '二维码生成',//二维码管理
    //     //   component: childView,
    //     //   isParent: true,
    //     //   redirect: '/dimensioncode/create',
    //     //   children: [
    //     //     {
    //     //       path: '/dimensioncode/create',////二维码管理创建
    //     //       name: '二维码管理创建',
    //     //       component: resolve => {
    //     //         require(['@/views/operate/dimensioncode/create.vue'], resolve)
    //     //       },
    //     //     },
    //     //   ]
    //     // },
    //     // {
    //     //   path: '/scoregroup',
    //     //   name: '评分组管理',//评分组管理
    //     //   component: childView,
    //     //   isParent: true,
    //     //   redirect: '/scoregroup/list',
    //     //   children: [
    //     //     {
    //     //       path: '/scoregroup/list',////评分组管理列表
    //     //       name: '评分组列表',
    //     //       component: resolve => {
    //     //         require(['@/views/operate/scoregroup/list.vue'], resolve)
    //     //       },
    //     //     },
    //     //     {
    //     //       path: '/scoregroup/add',////评分组管理添加
    //     //       name: '评分组添加',
    //     //       component: resolve => {
    //     //         require(['@/views/operate/scoregroup/edit.vue'], resolve)
    //     //       },
    //     //     },
    //     //     {
    //     //       path: '/scoregroup/edit',////评分组管理修改
    //     //       name: '评分组修改',
    //     //       component: resolve => {
    //     //         require(['@/views/operate/scoregroup/edit.vue'], resolve)
    //     //       },
    //     //     },
    //     //     {
    //     //       path: '/scoregroup/scoreitem/list',////评分项管理
    //     //       name: '评分项管理',
    //     //       component: childView,
    //     //       redirect: '/scoregroup/scoreitem/list',
    //     //       children: [
    //     //         {
    //     //           path: '/scoregroup/scoreitem/list',////评分项管理列表
    //     //           name: '评分项列表',
    //     //           component: resolve => {
    //     //             require(['@/views/operate/scoregroup/scoreitem/list.vue'], resolve)
    //     //           },
    //     //         },
    //     //         {
    //     //           path: '/scoregroup/scoreitem/add',////评分项管理添加
    //     //           name: '评分项添加',
    //     //           component: resolve => {
    //     //             require(['@/views/operate/scoregroup/scoreitem/edit.vue'], resolve)
    //     //           },
    //     //         },
    //     //         {
    //     //           path: '/scoregroup/scoreitem/edit',////评分项管理修改
    //     //           name: '评分项修改',
    //     //           component: resolve => {
    //     //             require(['@/views/operate/scoregroup/scoreitem/edit.vue'], resolve)
    //     //           },
    //     //         },
    //     //       ]
    //     //     }
    //     //   ]
    //     // },
    {
      path: '/word',
      name: '词汇管理',//词汇管理
      component: childView,
      children: [
        {
          path: '/tag',////tag管理
          name: 'tag管理',
          component: childView,
          redirect: '/tag/list',
          children: [
            {
              path: '/tag/list',////tag管理列表
              name: 'tag列表',
              component: resolve => {
                require(['@/views/operate/word/tag/list.vue'], resolve)
              },
            },
          ]
        },

        {
          path: '/keyword',////关键词管理
          name: '关键词管理',
          component: childView,
          redirect: '/keyword/list',
          children: [
            {
              path: '/keyword/list',////敏感词管理列表
              name: '关键词列表',
              component: resolve => {
                require(['@/views/operate/word/keyword/list.vue'], resolve)
              },
            },
          ]
        },
        {
          path: '/origin',////来源管理
          name: '来源管理',
          component: childView,
          redirect: '/origin/list',
          children: [
            {
              path: '/origin/list',////来源管理列表
              name: '来源列表',
              component: resolve => {
                require(['@/views/operate/word/origin/list.vue'], resolve)
              },
            },
          ]
        },
        {
          path: '/searchwords',////热词管理
          name: '热词管理',
          component: childView,
          redirect: '/searchwords/list',
          children: [
            {
              path: '/searchwords/list',////热词管理列表
              name: '热词列表',
              component: resolve => {
                require(['@/views/operate/word/searchwords/list.vue'], resolve)
              },
            },
          ]
        }
      ]
    },
  ]
}
export default helpRouter
